from django.contrib.sitemaps import Sitemap
from detlefschneider.gallery.models import Category
from detlefschneider.gallery.models import Gallery

class CategorySitemap(Sitemap):
    priority = 0.5

    def items(self):
        return Category.objects.all()

    def changefreq(self, obj):
        return "weekly"

class GallerySitemap(Sitemap):
    priority = 0.5

    def items(self):
        return Gallery.objects.all()

    def changefreq(self, obj):
        return "weekly"